/*
 * Generated via the com.flca generator
 */
package flca.voicenav;
 
import com.flca.IAppContext;
import com.flca.frw.dao.IConnectionPoolMgr;
import com.flca.frw.log.ILog;
import com.flca.frw.log.LogHelper;
import com.flca.frw.util.IConfigurationHelper;
import com.google.inject.Injector;
public enum VoiceNavContext {
	INSTANCE;
	
	private IAppContext appctx;
	private static ILog logger = LogHelper.getLogger(VoiceNavContext.class);
	
	public IAppContext getStarter() {
		return appctx;
	}
	
	public void setStarter(IAppContext appctx) {
		this.appctx = appctx;
	}
	
	public Injector getInjector() {
		if (appctx != null) {
			return appctx.getInjector();
		} else {
			logger.error("AppContext is null");
			return null;
		}
	}
	
	public IConfigurationHelper getConfigHelper() {
		if (appctx != null) {
			return appctx.getConfigurationHelper();
		} else {
			logger.error("AppContext is null");
			return null;
		}
	}
	
	public IConnectionPoolMgr getConnectionPoolMgr() {
		if (appctx != null) {
			return appctx.getConnectionPoolMgr();
		} else {
			logger.error("AppContext is null");
			return null;
		}
	}
}
